import request from '@/utils/request'

// 查询高危f风险源登记列表
export function listDangerSource(query) {
  return request({
    url: '/dangerwarning/dangerSource/list',
    method: 'get',
    params: query
  })
}

// 查询高危f风险源登记详细
export function getDangerSource(id) {
  return request({
    url: '/dangerwarning/dangerSource/' + id,
    method: 'get'
  })
}

// 新增高危f风险源登记
export function addDangerSource(data) {
  return request({
    url: '/dangerwarning/dangerSource',
    method: 'post',
    data: data
  })
}

// 修改高危f风险源登记
export function updateDangerSource(data) {
  return request({
    url: '/dangerwarning/dangerSource',
    method: 'put',
    data: data
  })
}

// 删除高危f风险源登记
export function delDangerSource(id) {
  return request({
    url: '/dangerwarning/dangerSource/' + id,
    method: 'delete'
  })
}
